package com.sdp.right.db.sys_emp.service;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdp.core.bizc.vo.BusinessContext;
import com.sdp.right.entity.SysEmp;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsp
 * @since 2023-10-12
 */
@DS(value="right")
public interface ISysEmpService extends IService<SysEmp> {

	/**
	 * 用户登录
	 * @param sysEmp
	 * @return
	 */
	BusinessContext login(SysEmp sysEmp) throws Exception;
	
	/**
	 * 登陆成功以后，根据token获得登陆人的所有权限信息
	 * @param sysEmp
	 * @return
	 */
	BusinessContext permissionInfo(boolean rightMode,String token,String systemNo);
	
	/**
	 * 根据账号和密码查询用户
	 * @param accountNo
	 * @param pwd
	 * @return
	 */
	SysEmp querySysEmp(String accountNo,String pwd);
	
	SysEmp querySysEmpByEmpNo(String empNo);
	
	SysEmp querySysEmpByAccountNo(String accountNo);
	
	List<SysEmp> querySysEmpByAccountNos(List<String> accountNos);
	
	boolean changePwd(SysEmp sysEmp);
	
	void removeSysEmpByAccountNo(String accountNo);
}
